﻿using UnityEngine;
using System.Collections;

public class FollowInstantiate : MonoBehaviour {


	public Transform target;
	NavMeshAgent agent;

	void Start(){
		agent = GetComponent<NavMeshAgent> ();
	}

	void Update(){
		agent.SetDestination (target.position);
	}

}
